package com.travel.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.travel.common.pojo.Discounts;
import com.travel.common.pojo.RouteCustom;
import com.travel.common.pojo.User;
import com.travel.common.pojo.relationUser;
import com.travel.dao.RouteCustomMapper;
import com.travel.service.RouteService;
@Service
public class RouteServiceImpl implements RouteService{
	@Autowired
	private RouteCustomMapper rm;

	@Override
	public List<RouteCustom> selectRouteList() {

		return rm.selectRouteList();
	}

	@Override
	public List<Discounts> selectDisCountList() {

		return rm.selectDisCountList();
	}

	@Override
	public List<relationUser> selectrelationUserList() {

		return rm.selectrelationUserList();
	}

	@Override
	public List<User> selectUserList() {

		return rm.selectUserList();
	}

	@Override
	public Integer saveRoute(RouteCustom rc) {

		return rm.saveRoute(rc);
	}

	@Override
	public RouteCustom selectRouteCustom() {

		return rm.selectRouteCustom();
	}

	@Override
	public relationUser selectrelationUserById(Integer relationUserId) {

		return rm.selectrelationUserById(relationUserId);
	}

	@Override
	public Integer updateRouteByRelation(relationUser relationUser, Integer id) {

		return rm.updateRouteByRelation(relationUser,id);
	}

}
